import type { SpuImageListItem } from "./spuModel";
export interface SkuAttrValueItem {
  id?: number;
  valueId: number;
  valueName: string;
  attrId: number;
  attrName: string;
}
export type SkuAttrValueList = SkuAttrValueItem[];

export interface SkuSaleAttrValueItem {
  id?: number;
  saleAttrId: number;
  saleAttrName: string;
  saleAttrValueId: number;
  saleAttrValueName: string;
}
export type SkuSaleAttrValueList = SkuSaleAttrValueItem[];

export interface SkuImageItem extends SpuImageListItem {
  isDefault: string;
}
export type SkuImageList = SkuImageItem[];
export interface SkuCommon {
  skuName: string;
  price: number;
  weight: string | number;
  skuDesc: string;
  skuAttrValueList: Array<string | undefined>;
  skuSaleAttrValueList: Array<string | undefined>;
  skuImageList: SkuImageList;
  skuDefaultImg: string;
}
export interface SkuItem
  extends Omit<SkuCommon, "skuAttrValueList" | "skuSaleAttrValueList"> {
  category3Id: number;
  id?: number;
  isSale?: number;
  spuId: number;
  skuAttrValueList: SkuAttrValueList;
  skuSaleAttrValueList: SkuSaleAttrValueList;
}
